home *** CD-ROM | disk | FTP | other *** search
Unknown | 2004-01-13 | 5.3 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 5e 54 2f 2f 20 3d 3d 3d |........|^T// ===|
|00000010| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000020| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000030| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000040| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000050| 3d 0d 0a 2f 2f 20 20 43 | 6c 61 73 73 3a 20 20 47 |=..// C|lass: G|
|00000060| 55 49 2e 47 55 49 4c 69 | 73 74 0d 0a 2f 2f 0d 0a |UI.GUILi|st..//..|
|00000070| 2f 2f 20 20 54 68 65 20 | 47 55 49 4c 69 73 74 20 |// The |GUIList |
|00000080| 69 73 20 61 20 62 61 73 | 69 63 20 6c 69 73 74 20 |is a bas|ic list |
|00000090| 63 6f 6d 70 6f 6e 65 6e | 74 2e 20 20 20 0d 0a 2f |componen|t. ../|
|000000a0| 2f 0d 0a 2f 2f 20 20 57 | 72 69 74 74 65 6e 20 62 |/..// W|ritten b|
|000000b0| 79 20 4a 6f 65 20 57 69 | 6c 63 6f 78 0d 0a 2f 2f |y Joe Wi|lcox..//|
|000000c0| 20 20 28 63 29 20 32 30 | 30 32 2c 20 45 70 69 63 | (c) 20|02, Epic|
|000000d0| 20 47 61 6d 65 73 2c 20 | 49 6e 63 2e 20 20 41 6c | Games, |Inc. Al|
|000000e0| 6c 20 52 69 67 68 74 73 | 20 52 65 73 65 72 76 65 |l Rights| Reserve|
|000000f0| 64 0d 0a 2f 2f 20 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |d..// ==|========|
|00000100| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000110| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000120| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000130| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 0d 0a 0d 0a 63 6c |========|==....cl|
|00000140| 61 73 73 20 47 55 49 4c | 69 73 74 20 65 78 74 65 |ass GUIL|ist exte|
|00000150| 6e 64 73 20 47 55 49 56 | 65 72 74 4c 69 73 74 0d |nds GUIV|ertList.|
|00000160| 0a 09 09 4e 61 74 69 76 | 65 3b 0d 0a 0d 0a 23 65 |...Nativ|e;....#e|
|00000170| 78 65 63 20 4f 42 4a 20 | 4c 4f 41 44 20 46 49 4c |xec OBJ |LOAD FIL|
|00000180| 45 3d 47 55 49 43 6f 6e | 74 65 6e 74 2e 75 74 78 |E=GUICon|tent.utx|
|00000190| 0d 0a 09 0d 0a 2f 2f 20 | 28 63 70 70 74 65 78 74 |.....// |(cpptext|
|000001a0| 29 0d 0a 2f 2f 20 28 63 | 70 70 74 65 78 74 29 0d |)..// (c|pptext).|
|000001b0| 0a 2f 2f 20 28 63 70 70 | 74 65 78 74 29 0d 0a 2f |.// (cpp|text)../|
|000001c0| 2f 20 28 63 70 70 74 65 | 78 74 29 0d 0a 0d 0a 76 |/ (cppte|xt)....v|
|000001d0| 61 72 09 09 65 54 65 78 | 74 41 6c 69 67 6e 09 09 |ar..eTex|tAlign..|
|000001e0| 09 54 65 78 74 41 6c 69 | 67 6e 3b 09 09 09 2f 2f |.TextAli|gn;...//|
|000001f0| 20 48 6f 77 20 69 73 20 | 74 65 78 74 20 41 6c 69 | How is |text Ali|
|00000200| 67 6e 65 64 20 69 6e 20 | 74 68 65 20 63 6f 6e 74 |gned in |the cont|
|00000210| 72 6f 6c 0d 0a 0d 0a 76 | 61 72 09 20 20 20 20 61 |rol....v|ar. a|
|00000220| 72 72 61 79 3c 47 55 49 | 4c 69 73 74 45 6c 65 6d |rray<GUI|ListElem|
|00000230| 3e 09 45 6c 65 6d 65 6e | 74 73 3b 0d 0a 0d 0a 6e |>.Elemen|ts;....n|
|00000240| 61 74 69 76 65 20 66 69 | 6e 61 6c 20 66 75 6e 63 |ative fi|nal func|
|00000250| 74 69 6f 6e 20 53 6f 72 | 74 4c 69 73 74 28 29 3b |tion Sor|tList();|
|00000260| 0d 0a 0d 0a 2f 2f 20 55 | 73 65 64 20 62 79 20 53 |....// U|sed by S|
|00000270| 6f 72 74 4c 69 73 74 2e | 0d 0a 64 65 6c 65 67 61 |ortList.|..delega|
|00000280| 74 65 20 69 6e 74 20 43 | 6f 6d 70 61 72 65 49 74 |te int C|ompareIt|
|00000290| 65 6d 28 47 55 49 4c 69 | 73 74 45 6c 65 6d 20 45 |em(GUILi|stElem E|
|000002a0| 6c 65 6d 41 2c 20 47 55 | 49 4c 69 73 74 45 6c 65 |lemA, GU|IListEle|
|000002b0| 6d 20 45 6c 65 6d 42 29 | 3b 0d 0a 0d 0a 2f 2f 20 |m ElemB)|;....// |
|000002c0| 41 63 63 65 73 73 6f 72 | 20 66 75 6e 63 74 69 6f |Accessor| functio|
|000002d0| 6e 20 66 6f 72 20 74 68 | 65 20 69 74 65 6d 73 2e |n for th|e items.|
|000002e0| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 73 74 72 |....func|tion str|
|000002f0| 69 6e 67 20 53 65 6c 65 | 63 74 65 64 54 65 78 74 |ing Sele|ctedText|
|00000300| 28 29 0d 0a 7b 0d 0a 09 | 69 66 20 28 20 28 49 6e |()..{...|if ( (In|
|00000310| 64 65 78 20 3e 3d 30 29 | 20 26 26 20 28 49 6e 64 |dex >=0)| && (Ind|
|00000320| 65 78 20 3c 45 6c 65 6d | 65 6e 74 73 2e 4c 65 6e |ex <Elem|ents.Len|
|00000330| 67 74 68 29 20 29 0d 0a | 09 09 72 65 74 75 72 6e |gth) )..|..return|
|00000340| 20 45 6c 65 6d 65 6e 74 | 73 5b 49 6e 64 65 78 5d | Element|s[Index]|
|00000350| 2e 49 74 65 6d 3b 0d 0a | 09 65 6c 73 65 0d 0a 09 |.Item;..|.else...|
|00000360| 09 72 65 74 75 72 6e 20 | 22 22 3b 0d 0a 7d 0d 0a |.return |"";..}..|
|00000370| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 41 64 64 28 73 |..functi|on Add(s|
|00000380| 74 72 69 6e 67 20 4e 65 | 77 49 74 65 6d 2c 20 6f |tring Ne|wItem, o|
|00000390| 70 74 69 6f 6e 61 6c 20 | 4f 62 6a 65 63 74 20 6f |ptional |Object o|
|000003a0| 62 6a 2c 20 6f 70 74 69 | 6f 6e 61 6c 20 73 74 72 |bj, opti|onal str|
|000003b0| 69 6e 67 20 53 74 72 29 | 0d 0a 7b 0d 0a 09 45 6c |ing Str)|..{...El|
|000003c0| 65 6d 65 6e 74 73 2e 4c | 65 6e 67 74 68 20 3d 20 |ements.L|ength = |
|000003d0| 45 6c 65 6d 65 6e 74 73 | 2e 4c 65 6e 67 74 68 2b |Elements|.Length+|
|000003e0| 31 3b 0d 0a 09 0d 0a 09 | 45 6c 65 6d 65 6e 74 73 |1;......|Elements|
|000003f0| 5b 45 6c 65 6d 65 6e 74 | 73 2e 4c 65 6e 67 74 68 |[Element|s.Length|
|00000400| 2d 31 5d 2e 49 74 65 6d | 3d 4e 65 77 49 74 65 6d |-1].Item|=NewItem|
|00000410| 3b 0d 0a 09 45 6c 65 6d | 65 6e 74 73 5b 45 6c 65 |;...Elem|ents[Ele|
|00000420| 6d 65 6e 74 73 2e 4c 65 | 6e 67 74 68 2d 31 5d 2e |ments.Le|ngth-1].|
|00000430| 45 78 74 72 61 44 61 74 | 61 3d 6f 62 6a 3b 0d 0a |ExtraDat|a=obj;..|
|00000440| 09 45 6c 65 6d 65 6e 74 | 73 5b 45 6c 65 6d 65 6e |.Element|s[Elemen|
|00000450| 74 73 2e 4c 65 6e 67 74 | 68 2d 31 5d 2e 45 78 74 |ts.Lengt|h-1].Ext|
|00000460| 72 61 53 74 72 44 61 74 | 61 3d 53 74 72 3b 0d 0a |raStrDat|a=Str;..|
|00000470| 0d 0a 09 49 74 65 6d 43 | 6f 75 6e 74 3d 45 6c 65 |...ItemC|ount=Ele|
|00000480| 6d 65 6e 74 73 2e 4c 65 | 6e 67 74 68 3b 0d 0a 09 |ments.Le|ngth;...|
|00000490| 0d 0a 09 69 66 20 28 45 | 6c 65 6d 65 6e 74 73 2e |...if (E|lements.|
|000004a0| 4c 65 6e 67 74 68 20 3d | 3d 20 31 29 0d 0a 09 09 |Length =|= 1)....|
|000004b0| 53 65 74 49 6e 64 65 78 | 28 30 29 3b 0d 0a 09 65 |SetIndex|(0);...e|
|000004c0| 6c 73 65 0d 0a 09 09 4f | 6e 43 68 61 6e 67 65 28 |lse....O|nChange(|
|000004d0| 73 65 6c 66 29 3b 0d 0a | 0d 0a 09 4d 79 53 63 72 |self);..|...MyScr|
|000004e0| 6f 6c 6c 42 61 72 2e 41 | 6c 69 67 6e 54 68 75 6d |ollBar.A|lignThum|
|000004f0| 62 28 29 3b 0d 0a 7d 0d | 0a 0d 0a 66 75 6e 63 74 |b();..}.|...funct|
|00000500| 69 6f 6e 20 52 65 70 6c | 61 63 65 28 69 6e 74 20 |ion Repl|ace(int |
|00000510| 69 6e 64 65 78 2c 20 73 | 74 72 69 6e 67 20 4e 65 |index, s|tring Ne|
|00000520| 77 49 74 65 6d 2c 20 6f | 70 74 69 6f 6e 61 6c 20 |wItem, o|ptional |
|00000530| 4f 62 6a 65 63 74 20 6f | 62 6a 2c 20 6f 70 74 69 |Object o|bj, opti|
|00000540| 6f 6e 61 6c 20 73 74 72 | 69 6e 67 20 53 74 72 29 |onal str|ing Str)|
|00000550| 0d 0a 7b 0d 0a 09 69 66 | 20 28 20 28 49 6e 64 65 |..{...if| ( (Inde|
|00000560| 78 3c 30 29 20 7c 7c 20 | 28 49 6e 64 65 78 3e 3d |x<0) || |(Index>=|
|00000570| 45 6c 65 6d 65 6e 74 73 | 2e 4c 65 6e 67 74 68 29 |Elements|.Length)|
|00000580| 20 29 0d 0a 09 09 41 64 | 64 28 4e 65 77 49 74 65 | )....Ad|d(NewIte|
|00000590| 6d 2c 4f 62 6a 2c 53 74 | 72 29 3b 0d 0a 09 65 6c |m,Obj,St|r);...el|
|000005a0| 73 65 0d 0a 09 7b 0d 0a | 09 09 45 6c 65 6d 65 6e |se...{..|..Elemen|
|000005b0| 74 73 5b 49 6e 64 65 78 | 5d 2e 49 74 65 6d 20 3d |ts[Index|].Item =|
|000005c0| 20 4e 65 77 49 74 65 6d | 3b 0d 0a 09 09 45 6c 65 | NewItem|;....Ele|
|000005d0| 6d 65 6e 74 73 5b 49 6e | 64 65 78 5d 2e 45 78 74 |ments[In|dex].Ext|
|000005e0| 72 61 44 61 74 61 20 3d | 20 6f 62 6a 3b 0d 0a 09 |raData =| obj;...|
|000005f0| 09 45 6c 65 6d 65 6e 74 | 73 5b 49 6e 64 65 78 5d |.Element|s[Index]|
|00000600| 2e 45 78 74 72 61 53 74 | 72 44 61 74 61 20 3d 20 |.ExtraSt|rData = |
|00000610| 53 74 72 3b 0d 0a 09 7d | 0d 0a 7d 09 09 0d 0a 0d |Str;...}|..}.....|
|00000620| 0a 66 75 6e 63 74 69 6f | 6e 20 49 6e 73 65 72 74 |.functio|n Insert|
|00000630| 28 69 6e 74 20 49 6e 64 | 65 78 2c 20 73 74 72 69 |(int Ind|ex, stri|
|00000640| 6e 67 20 4e 65 77 49 74 | 65 6d 2c 20 6f 70 74 69 |ng NewIt|em, opti|
|00000650| 6f 6e 61 6c 20 4f 62 6a | 65 63 74 20 6f 62 6a 2c |onal Obj|ect obj,|
|00000660| 20 6f 70 74 69 6f 6e 61 | 6c 20 73 74 72 69 6e 67 | optiona|l string|
|00000670| 20 53 74 72 29 0d 0a 7b | 0d 0a 09 69 66 20 28 20 | Str)..{|...if ( |
|00000680| 28 49 6e 64 65 78 3c 30 | 29 20 7c 7c 20 28 49 6e |(Index<0|) || (In|
|00000690| 64 65 78 3e 3d 45 6c 65 | 6d 65 6e 74 73 2e 4c 65 |dex>=Ele|ments.Le|
|000006a0| 6e 67 74 68 29 20 29 0d | 0a 09 09 41 64 64 28 4e |ngth) ).|...Add(N|
|000006b0| 65 77 49 74 65 6d 2c 4f | 62 6a 2c 53 74 72 29 3b |ewItem,O|bj,Str);|
|000006c0| 0d 0a 09 65 6c 73 65 0d | 0a 09 7b 0d 0a 09 09 45 |...else.|..{....E|
|000006d0| 6c 65 6d 65 6e 74 73 2e | 49 6e 73 65 72 74 28 69 |lements.|Insert(i|
|000006e0| 6e 64 65 78 2c 31 29 3b | 0d 0a 09 09 45 6c 65 6d |ndex,1);|....Elem|
|000006f0| 65 6e 74 73 5b 49 6e 64 | 65 78 5d 2e 49 74 65 6d |ents[Ind|ex].Item|
|00000700| 3d 4e 65 77 49 74 65 6d | 3b 0d 0a 09 09 45 6c 65 |=NewItem|;....Ele|
|00000710| 6d 65 6e 74 73 5b 49 6e | 64 65 78 5d 2e 45 78 74 |ments[In|dex].Ext|
|00000720| 72 61 44 61 74 61 3d 6f | 62 6a 3b 0d 0a 09 09 45 |raData=o|bj;....E|
|00000730| 6c 65 6d 65 6e 74 73 5b | 49 6e 64 65 78 5d 2e 45 |lements[|Index].E|
|00000740| 78 74 72 61 53 74 72 44 | 61 74 61 3d 53 74 72 3b |xtraStrD|ata=Str;|
|00000750| 0d 0a 0d 0a 09 09 49 74 | 65 6d 43 6f 75 6e 74 3d |......It|emCount=|
|00000760| 45 6c 65 6d 65 6e 74 73 | 2e 4c 65 6e 67 74 68 3b |Elements|.Length;|
|00000770| 09 0d 0a 0d 0a 09 09 4f | 6e 43 68 61 6e 67 65 28 |.......O|nChange(|
|00000780| 73 65 6c 66 29 3b 0d 0a | 09 09 4d 79 53 63 72 6f |self);..|..MyScro|
|00000790| 6c 6c 42 61 72 2e 41 6c | 69 67 6e 54 68 75 6d 62 |llBar.Al|ignThumb|
|000007a0| 28 29 3b 0d 0a 09 7d 0d | 0a 7d 09 0d 0a 0d 0a 65 |();...}.|.}.....e|
|000007b0| 76 65 6e 74 20 53 77 61 | 70 28 69 6e 74 20 49 6e |vent Swa|p(int In|
|000007c0| 64 65 78 41 2c 20 69 6e | 74 20 49 6e 64 65 78 42 |dexA, in|t IndexB|
|000007d0| 29 0d 0a 7b 0d 0a 09 6c | 6f 63 61 6c 20 47 55 49 |)..{...l|ocal GUI|
|000007e0| 2e 47 55 49 4c 69 73 74 | 45 6c 65 6d 20 65 6c 65 |.GUIList|Elem ele|
|000007f0| 6d 3b 0d 0a 0d 0a 09 69 | 66 20 28 20 28 49 6e 64 |m;.....i|f ( (Ind|
|00000800| 65 78 41 3c 30 29 20 7c | 7c 20 28 49 6e 64 65 78 |exA<0) ||| (Index|
|00000810| 41 3e 3d 45 6c 65 6d 65 | 6e 74 73 2e 4c 65 6e 67 |A>=Eleme|nts.Leng|
|00000820| 74 68 29 20 7c 7c 20 28 | 49 6e 64 65 78 42 3c 30 |th) || (|IndexB<0|
|00000830| 29 20 7c 7c 20 28 49 6e | 64 65 78 42 3e 3d 45 6c |) || (In|dexB>=El|
|00000840| 65 6d 65 6e 74 73 2e 4c | 65 6e 67 74 68 29 20 29 |ements.L|ength) )|
|00000850| 0d 0a 09 09 72 65 74 75 | 72 6e 3b 0d 0a 0d 0a 09 |....retu|rn;.....|
|00000860| 65 6c 65 6d 20 3d 20 45 | 6c 65 6d 65 6e 74 73 5b |elem = E|lements[|
|00000870| 49 6e 64 65 78 41 5d 3b | 0d 0a 09 45 6c 65 6d 65 |IndexA];|...Eleme|
|00000880| 6e 74 73 5b 49 6e 64 65 | 78 41 5d 20 3d 20 45 6c |nts[Inde|xA] = El|
|00000890| 65 6d 65 6e 74 73 5b 49 | 6e 64 65 78 42 5d 3b 0d |ements[I|ndexB];.|
|000008a0| 0a 09 45 6c 65 6d 65 6e | 74 73 5b 49 6e 64 65 78 |..Elemen|ts[Index|
|000008b0| 42 5d 20 3d 20 65 6c 65 | 6d 3b 0d 0a 7d 0d 0a 09 |B] = ele|m;..}...|
|000008c0| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 73 74 72 69 6e |..functi|on strin|
|000008d0| 67 20 47 65 74 49 74 65 | 6d 41 74 49 6e 64 65 78 |g GetIte|mAtIndex|
|000008e0| 28 69 6e 74 20 69 29 0d | 0a 7b 0d 0a 09 69 66 20 |(int i).|.{...if |
|000008f0| 28 28 69 3c 30 29 20 7c | 7c 20 28 69 3e 45 6c 65 |((i<0) ||| (i>Ele|
|00000900| 6d 65 6e 74 73 2e 4c 65 | 6e 67 74 68 29 29 0d 0a |ments.Le|ngth))..|
|00000910| 09 09 72 65 74 75 72 6e | 20 22 22 3b 0d 0a 09 09 |..return| "";....|
|00000920| 0d 0a 09 72 65 74 75 72 | 6e 20 45 6c 65 6d 65 6e |...retur|n Elemen|
|00000930| 74 73 5b 69 5d 2e 49 74 | 65 6d 3b 0d 0a 7d 0d 0a |ts[i].It|em;..}..|
|00000940| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 53 65 74 49 74 |..functi|on SetIt|
|00000950| 65 6d 41 74 49 6e 64 65 | 78 28 69 6e 74 20 69 2c |emAtInde|x(int i,|
|00000960| 20 73 74 72 69 6e 67 20 | 4e 65 77 49 74 65 6d 29 | string |NewItem)|
|00000970| 0d 0a 7b 0d 0a 09 69 66 | 20 28 28 69 3c 30 29 20 |..{...if| ((i<0) |
|00000980| 7c 7c 20 28 69 3e 45 6c | 65 6d 65 6e 74 73 2e 4c ||| (i>El|ements.L|
|00000990| 65 6e 67 74 68 29 29 0d | 0a 09 09 72 65 74 75 72 |ength)).|...retur|
|000009a0| 6e 3b 0d 0a 09 09 0d 0a | 09 45 6c 65 6d 65 6e 74 |n;......|.Element|
|000009b0| 73 5b 69 5d 2e 49 74 65 | 6d 20 3d 20 4e 65 77 49 |s[i].Ite|m = NewI|
|000009c0| 74 65 6d 3b 0d 0a 7d 0d | 0a 0d 0a 66 75 6e 63 74 |tem;..}.|...funct|
|000009d0| 69 6f 6e 20 6f 62 6a 65 | 63 74 20 47 65 74 4f 62 |ion obje|ct GetOb|
|000009e0| 6a 65 63 74 41 74 49 6e | 64 65 78 28 69 6e 74 20 |jectAtIn|dex(int |
|000009f0| 69 29 0d 0a 7b 0d 0a 09 | 69 66 20 28 28 69 3c 30 |i)..{...|if ((i<0|
|00000a00| 29 20 7c 7c 20 28 69 3e | 45 6c 65 6d 65 6e 74 73 |) || (i>|Elements|
|00000a10| 2e 4c 65 6e 67 74 68 29 | 29 0d 0a 09 09 72 65 74 |.Length)|)....ret|
|00000a20| 75 72 6e 20 4e 6f 6e 65 | 3b 0d 0a 09 09 0d 0a 09 |urn None|;.......|
|00000a30| 72 65 74 75 72 6e 20 45 | 6c 65 6d 65 6e 74 73 5b |return E|lements[|
|00000a40| 69 5d 2e 45 78 74 72 61 | 44 61 74 61 3b 0d 0a 7d |i].Extra|Data;..}|
|00000a50| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 73 74 72 |....func|tion str|
|00000a60| 69 6e 67 20 47 65 74 45 | 78 74 72 61 41 74 49 6e |ing GetE|xtraAtIn|
|00000a70| 64 65 78 28 69 6e 74 20 | 69 29 0d 0a 7b 0d 0a 09 |dex(int |i)..{...|
|00000a80| 69 66 20 28 28 69 3c 30 | 29 20 7c 7c 20 28 69 3e |if ((i<0|) || (i>|
|00000a90| 45 6c 65 6d 65 6e 74 73 | 2e 4c 65 6e 67 74 68 29 |Elements|.Length)|
|00000aa0| 29 0d 0a 09 09 72 65 74 | 75 72 6e 20 22 22 3b 0d |)....ret|urn "";.|
|00000ab0| 0a 09 09 0d 0a 09 72 65 | 74 75 72 6e 20 45 6c 65 |......re|turn Ele|
|00000ac0| 6d 65 6e 74 73 5b 69 5d | 2e 45 78 74 72 61 53 74 |ments[i]|.ExtraSt|
|00000ad0| 72 44 61 74 61 3b 0d 0a | 7d 0d 0a 0d 0a 66 75 6e |rData;..|}....fun|
|00000ae0| 63 74 69 6f 6e 20 53 65 | 74 45 78 74 72 61 41 74 |ction Se|tExtraAt|
|00000af0| 49 6e 64 65 78 28 69 6e | 74 20 69 2c 20 73 74 72 |Index(in|t i, str|
|00000b00| 69 6e 67 20 4e 65 77 45 | 78 74 72 61 29 0d 0a 7b |ing NewE|xtra)..{|
|00000b10| 0d 0a 09 69 66 20 28 28 | 69 3c 30 29 20 7c 7c 20 |...if ((|i<0) || |
|00000b20| 28 69 3e 45 6c 65 6d 65 | 6e 74 73 2e 4c 65 6e 67 |(i>Eleme|nts.Leng|
|00000b30| 74 68 29 29 0d 0a 09 09 | 72 65 74 75 72 6e 3b 0d |th))....|return;.|
|00000b40| 0a 09 09 0d 0a 09 45 6c | 65 6d 65 6e 74 73 5b 69 |......El|ements[i|
|00000b50| 5d 2e 45 78 74 72 61 53 | 74 72 44 61 74 61 20 3d |].ExtraS|trData =|
|00000b60| 20 4e 65 77 45 78 74 72 | 61 3b 0d 0a 7d 0d 0a 0d | NewExtr|a;..}...|
|00000b70| 0a 66 75 6e 63 74 69 6f | 6e 20 47 65 74 41 74 49 |.functio|n GetAtI|
|00000b80| 6e 64 65 78 28 69 6e 74 | 20 69 2c 20 6f 75 74 20 |ndex(int| i, out |
|00000b90| 73 74 72 69 6e 67 20 49 | 74 65 6d 53 74 72 2c 20 |string I|temStr, |
|00000ba0| 6f 75 74 20 6f 62 6a 65 | 63 74 20 45 78 74 72 61 |out obje|ct Extra|
|00000bb0| 4f 62 6a 2c 20 6f 75 74 | 20 73 74 72 69 6e 67 20 |Obj, out| string |
|00000bc0| 45 78 74 72 61 53 74 72 | 29 0d 0a 7b 0d 0a 09 69 |ExtraStr|)..{...i|
|00000bd0| 66 20 28 28 69 3c 30 29 | 20 7c 7c 20 28 69 3e 45 |f ((i<0)| || (i>E|
|00000be0| 6c 65 6d 65 6e 74 73 2e | 4c 65 6e 67 74 68 29 29 |lements.|Length))|
|00000bf0| 0d 0a 09 09 72 65 74 75 | 72 6e 3b 0d 0a 09 09 0d |....retu|rn;.....|
|00000c00| 0a 09 49 74 65 6d 53 74 | 72 20 3d 20 45 6c 65 6d |..ItemSt|r = Elem|
|00000c10| 65 6e 74 73 5b 69 5d 2e | 49 74 65 6d 3b 0d 0a 09 |ents[i].|Item;...|
|00000c20| 45 78 74 72 61 4f 62 6a | 20 3d 20 45 6c 65 6d 65 |ExtraObj| = Eleme|
|00000c30| 6e 74 73 5b 69 5d 2e 45 | 78 74 72 61 44 61 74 61 |nts[i].E|xtraData|
|00000c40| 3b 0d 0a 09 45 78 74 72 | 61 53 74 72 20 3d 20 45 |;...Extr|aStr = E|
|00000c50| 6c 65 6d 65 6e 74 73 5b | 69 5d 2e 45 78 74 72 61 |lements[|i].Extra|
|00000c60| 53 74 72 44 61 74 61 3b | 0d 0a 7d 20 20 0d 0a 0d |StrData;|..} ...|
|00000c70| 0a 66 75 6e 63 74 69 6f | 6e 20 4c 6f 61 64 46 72 |.functio|n LoadFr|
|00000c80| 6f 6d 28 47 55 49 4c 69 | 73 74 20 53 6f 75 72 63 |om(GUILi|st Sourc|
|00000c90| 65 2c 20 6f 70 74 69 6f | 6e 61 6c 20 62 6f 6f 6c |e, optio|nal bool|
|00000ca0| 20 62 43 6c 65 61 72 46 | 69 72 73 74 29 0d 0a 7b | bClearF|irst)..{|
|00000cb0| 0d 0a 09 6c 6f 63 61 6c | 20 73 74 72 69 6e 67 20 |...local| string |
|00000cc0| 74 31 2c 74 32 3b 0d 0a | 09 6c 6f 63 61 6c 20 6f |t1,t2;..|.local o|
|00000cd0| 62 6a 65 63 74 20 74 3b | 0d 0a 09 6c 6f 63 61 6c |bject t;|...local|
|00000ce0| 20 69 6e 74 20 69 3b 0d | 0a 0d 0a 09 69 66 20 28 | int i;.|....if (|
|00000cf0| 62 43 6c 65 61 72 66 69 | 72 73 74 29 0d 0a 09 09 |bClearfi|rst)....|
|00000d00| 43 6c 65 61 72 28 29 3b | 0d 0a 09 0d 0a 09 66 6f |Clear();|......fo|
|00000d10| 72 20 28 69 3d 30 3b 69 | 3c 53 6f 75 72 63 65 2e |r (i=0;i|<Source.|
|00000d20| 45 6c 65 6d 65 6e 74 73 | 2e 4c 65 6e 67 74 68 3b |Elements|.Length;|
|00000d30| 69 2b 2b 29 0d 0a 09 7b | 0d 0a 09 09 53 6f 75 72 |i++)...{|....Sour|
|00000d40| 63 65 2e 47 65 74 41 74 | 49 6e 64 65 78 28 69 2c |ce.GetAt|Index(i,|
|00000d50| 74 31 2c 74 2c 74 32 29 | 3b 0d 0a 09 09 41 64 64 |t1,t,t2)|;....Add|
|00000d60| 28 74 31 2c 74 2c 74 32 | 29 3b 0d 0a 09 7d 0d 0a |(t1,t,t2|);...}..|
|00000d70| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 52 65 |}....fun|ction Re|
|00000d80| 6d 6f 76 65 28 69 6e 74 | 20 69 2c 20 6f 70 74 69 |move(int| i, opti|
|00000d90| 6f 6e 61 6c 20 69 6e 74 | 20 43 6f 75 6e 74 29 0d |onal int| Count).|
|00000da0| 0a 7b 0d 0a 09 69 66 20 | 28 43 6f 75 6e 74 3d 3d |.{...if |(Count==|
|00000db0| 30 29 0d 0a 09 09 43 6f | 75 6e 74 3d 31 3b 0d 0a |0)....Co|unt=1;..|
|00000dc0| 09 09 0d 0a 09 45 6c 65 | 6d 65 6e 74 73 2e 52 65 |.....Ele|ments.Re|
|00000dd0| 6d 6f 76 65 28 69 2c 20 | 43 6f 75 6e 74 29 3b 0d |move(i, |Count);.|
|00000de0| 0a 0d 0a 09 49 74 65 6d | 43 6f 75 6e 74 20 3d 20 |....Item|Count = |
|00000df0| 45 6c 65 6d 65 6e 74 73 | 2e 4c 65 6e 67 74 68 3b |Elements|.Length;|
|00000e00| 09 09 0d 0a 09 09 0d 0a | 09 53 65 74 49 6e 64 65 |........|.SetInde|
|00000e10| 78 28 2d 31 29 3b 0d 0a | 09 4d 79 53 63 72 6f 6c |x(-1);..|.MyScrol|
|00000e20| 6c 42 61 72 2e 41 6c 69 | 67 6e 54 68 75 6d 62 28 |lBar.Ali|gnThumb(|
|00000e30| 29 3b 0d 0a 7d 20 0d 0a | 0d 0a 66 75 6e 63 74 69 |);..} ..|..functi|
|00000e40| 6f 6e 20 52 65 6d 6f 76 | 65 49 74 65 6d 28 73 74 |on Remov|eItem(st|
|00000e50| 72 69 6e 67 20 49 74 65 | 6d 29 0d 0a 7b 0d 0a 09 |ring Ite|m)..{...|
|00000e60| 6c 6f 63 61 6c 20 69 6e | 74 20 69 3b 0d 0a 0d 0a |local in|t i;....|
|00000e70| 09 2f 2f 20 57 6f 72 6b | 20 74 68 72 6f 75 67 68 |.// Work| through|
|00000e80| 20 61 72 72 61 79 2e 20 | 49 66 20 77 65 20 66 69 | array. |If we fi|
|00000e90| 6e 64 20 69 74 2c 20 72 | 65 6d 6f 76 65 20 69 74 |nd it, r|emove it|
|00000ea0| 20 28 77 69 6c 6c 20 72 | 65 64 75 63 65 20 45 6c | (will r|educe El|
|00000eb0| 65 6d 65 6e 74 73 2e 4c | 65 6e 67 74 68 29 2e 0d |ements.L|ength)..|
|00000ec0| 0a 09 2f 2f 20 49 66 20 | 77 65 20 64 6f 6e 27 74 |..// If |we don't|
|00000ed0| 2c 20 6d 6f 76 65 20 6f | 6e 20 74 6f 20 6e 65 78 |, move o|n to nex|
|00000ee0| 74 20 6f 6e 65 2e 0d 0a | 09 69 3d 30 3b 0d 0a 09 |t one...|.i=0;...|
|00000ef0| 77 68 69 6c 65 28 69 3c | 45 6c 65 6d 65 6e 74 73 |while(i<|Elements|
|00000f00| 2e 4c 65 6e 67 74 68 29 | 0d 0a 09 7b 0d 0a 09 09 |.Length)|...{....|
|00000f10| 69 66 28 49 74 65 6d 20 | 7e 3d 20 45 6c 65 6d 65 |if(Item |~= Eleme|
|00000f20| 6e 74 73 5b 69 5d 2e 49 | 74 65 6d 29 0d 0a 09 09 |nts[i].I|tem)....|
|00000f30| 09 45 6c 65 6d 65 6e 74 | 73 2e 52 65 6d 6f 76 65 |.Element|s.Remove|
|00000f40| 28 69 2c 20 31 29 3b 0d | 0a 09 09 65 6c 73 65 0d |(i, 1);.|...else.|
|00000f50| 0a 09 09 09 69 2b 2b 3b | 0d 0a 09 7d 0d 0a 0d 0a |....i++;|...}....|
|00000f60| 09 49 74 65 6d 43 6f 75 | 6e 74 20 3d 20 45 6c 65 |.ItemCou|nt = Ele|
|00000f70| 6d 65 6e 74 73 2e 4c 65 | 6e 67 74 68 3b 0d 0a 0d |ments.Le|ngth;...|
|00000f80| 0a 09 53 65 74 49 6e 64 | 65 78 28 2d 31 29 3b 0d |..SetInd|ex(-1);.|
|00000f90| 0a 09 4d 79 53 63 72 6f | 6c 6c 42 61 72 2e 41 6c |..MyScro|llBar.Al|
|00000fa0| 69 67 6e 54 68 75 6d 62 | 28 29 3b 0d 0a 7d 0d 0a |ignThumb|();..}..|
|00000fb0| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 43 6c 65 61 72 |..functi|on Clear|
|00000fc0| 28 29 0d 0a 7b 0d 0a 09 | 45 6c 65 6d 65 6e 74 73 |()..{...|Elements|
|00000fd0| 2e 52 65 6d 6f 76 65 28 | 30 2c 45 6c 65 6d 65 6e |.Remove(|0,Elemen|
|00000fe0| 74 73 2e 4c 65 6e 67 74 | 68 29 3b 0d 0a 0d 0a 09 |ts.Lengt|h);.....|
|00000ff0| 53 75 70 65 72 2e 43 6c | 65 61 72 28 29 3b 0d 0a |Super.Cl|ear();..|
|00001000| 09 4f 6e 43 68 61 6e 67 | 65 28 73 65 6c 66 29 3b |.OnChang|e(self);|
|00001010| 0d 0a 7d 09 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |..}.....|function|
|00001020| 20 73 74 72 69 6e 67 20 | 47 65 74 28 29 0d 0a 7b | string |Get()..{|
|00001030| 0d 0a 09 69 66 20 28 20 | 28 49 6e 64 65 78 3c 30 |...if ( |(Index<0|
|00001040| 29 20 7c 7c 20 28 49 6e | 64 65 78 3e 3d 49 74 65 |) || (In|dex>=Ite|
|00001050| 6d 43 6f 75 6e 74 29 20 | 29 0d 0a 09 09 72 65 74 |mCount) |)....ret|
|00001060| 75 72 6e 20 22 22 3b 0d | 0a 09 65 6c 73 65 0d 0a |urn "";.|..else..|
|00001070| 09 09 72 65 74 75 72 6e | 20 45 6c 65 6d 65 6e 74 |..return| Element|
|00001080| 73 5b 49 6e 64 65 78 5d | 2e 49 74 65 6d 3b 0d 0a |s[Index]|.Item;..|
|00001090| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 6f 62 |}....fun|ction ob|
|000010a0| 6a 65 63 74 20 47 65 74 | 4f 62 6a 65 63 74 28 29 |ject Get|Object()|
|000010b0| 0d 0a 7b 0d 0a 09 69 66 | 20 28 20 28 49 6e 64 65 |..{...if| ( (Inde|
|000010c0| 78 3c 30 29 20 7c 7c 20 | 28 49 6e 64 65 78 3e 3d |x<0) || |(Index>=|
|000010d0| 49 74 65 6d 43 6f 75 6e | 74 29 20 29 0d 0a 09 09 |ItemCoun|t) )....|
|000010e0| 72 65 74 75 72 6e 20 6e | 6f 6e 65 3b 0d 0a 09 65 |return n|one;...e|
|000010f0| 6c 73 65 0d 0a 09 09 72 | 65 74 75 72 6e 20 45 6c |lse....r|eturn El|
|00001100| 65 6d 65 6e 74 73 5b 49 | 6e 64 65 78 5d 2e 45 78 |ements[I|ndex].Ex|
|00001110| 74 72 61 44 61 74 61 3b | 0d 0a 7d 09 0d 0a 0d 0a |traData;|..}.....|
|00001120| 66 75 6e 63 74 69 6f 6e | 20 73 74 72 69 6e 67 20 |function| string |
|00001130| 47 65 74 45 78 74 72 61 | 28 29 0d 0a 7b 0d 0a 09 |GetExtra|()..{...|
|00001140| 69 66 20 28 20 28 49 6e | 64 65 78 3c 30 29 20 7c |if ( (In|dex<0) ||
|00001150| 7c 20 28 49 6e 64 65 78 | 3e 3d 49 74 65 6d 43 6f || (Index|>=ItemCo|
|00001160| 75 6e 74 29 20 29 0d 0a | 09 09 72 65 74 75 72 6e |unt) )..|..return|
|00001170| 20 22 22 3b 0d 0a 09 65 | 6c 73 65 0d 0a 09 09 72 | "";...e|lse....r|
|00001180| 65 74 75 72 6e 20 45 6c | 65 6d 65 6e 74 73 5b 49 |eturn El|ements[I|
|00001190| 6e 64 65 78 5d 2e 45 78 | 74 72 61 53 74 72 44 61 |ndex].Ex|traStrDa|
|000011a0| 74 61 3b 0d 0a 7d 0d 0a | 09 0d 0a 66 75 6e 63 74 |ta;..}..|...funct|
|000011b0| 69 6f 6e 20 73 74 72 69 | 6e 67 20 66 69 6e 64 28 |ion stri|ng find(|
|000011c0| 73 74 72 69 6e 67 20 54 | 65 78 74 2c 20 6f 70 74 |string T|ext, opt|
|000011d0| 69 6f 6e 61 6c 20 62 6f | 6f 6c 20 62 45 78 61 63 |ional bo|ol bExac|
|000011e0| 74 29 0d 0a 7b 0d 0a 09 | 6c 6f 63 61 6c 20 69 6e |t)..{...|local in|
|000011f0| 74 20 69 3b 0d 0a 09 66 | 6f 72 20 28 69 3d 30 3b |t i;...f|or (i=0;|
|00001200| 69 3c 49 74 65 6d 43 6f | 75 6e 74 3b 69 2b 2b 29 |i<ItemCo|unt;i++)|
|00001210| 0d 0a 09 7b 0d 0a 09 09 | 69 66 20 28 62 45 78 61 |...{....|if (bExa|
|00001220| 63 74 29 0d 0a 09 09 7b | 0d 0a 09 09 09 69 66 20 |ct)....{|.....if |
|00001230| 28 54 65 78 74 20 3d 3d | 20 45 6c 65 6d 65 6e 74 |(Text ==| Element|
|00001240| 73 5b 69 5d 2e 49 74 65 | 6d 29 0d 0a 09 09 09 7b |s[i].Ite|m).....{|
|00001250| 0d 0a 09 09 09 09 53 65 | 74 49 6e 64 65 78 28 69 |......Se|tIndex(i|
|00001260| 29 3b 0d 0a 09 09 09 09 | 72 65 74 75 72 6e 20 20 |);......|return |
|00001270| 45 6c 65 6d 65 6e 74 73 | 5b 69 5d 2e 49 74 65 6d |Elements|[i].Item|
|00001280| 3b 0d 0a 09 09 09 7d 0d | 0a 09 09 7d 0d 0a 09 09 |;.....}.|...}....|
|00001290| 65 6c 73 65 0d 0a 09 09 | 7b 0d 0a 09 09 09 69 66 |else....|{.....if|
|000012a0| 20 28 54 65 78 74 20 7e | 3d 20 20 45 6c 65 6d 65 | (Text ~|= Eleme|
|000012b0| 6e 74 73 5b 69 5d 2e 49 | 74 65 6d 29 0d 0a 09 09 |nts[i].I|tem)....|
|000012c0| 09 7b 0d 0a 09 09 09 09 | 53 65 74 49 6e 64 65 78 |.{......|SetIndex|
|000012d0| 28 69 29 3b 0d 0a 09 09 | 09 09 72 65 74 75 72 6e |(i);....|..return|
|000012e0| 20 20 45 6c 65 6d 65 6e | 74 73 5b 69 5d 2e 49 74 | Elemen|ts[i].It|
|000012f0| 65 6d 3b 0d 0a 09 09 09 | 7d 0d 0a 09 09 7d 0d 0a |em;.....|}....}..|
|00001300| 09 7d 0d 0a 09 72 65 74 | 75 72 6e 20 22 22 3b 0d |.}...ret|urn "";.|
|00001310| 0a 7d 0d 0a 0d 0a 2f 2f | 20 66 69 6e 64 20 61 6e |.}....//| find an|
|00001320| 20 65 6c 65 6d 65 6e 74 | 20 62 79 20 74 68 65 20 | element| by the |
|00001330| 27 65 78 74 72 61 27 20 | 73 74 72 69 6e 67 0d 0a |'extra' |string..|
|00001340| 2f 2f 20 6f 6e 6c 79 20 | 73 65 74 73 20 74 68 65 |// only |sets the|
|00001350| 20 69 6e 64 65 78 20 69 | 66 20 69 74 20 66 69 6e | index i|f it fin|
|00001360| 64 73 20 74 68 65 20 73 | 74 72 69 6e 67 0d 0a 2f |ds the s|tring../|
|00001370| 2f 20 72 65 74 75 72 6e | 73 20 74 68 65 20 73 74 |/ return|s the st|
|00001380| 72 69 6e 67 20 6f 66 20 | 74 68 65 20 66 6f 75 6e |ring of |the foun|
|00001390| 64 20 69 74 65 6d 0d 0a | 66 75 6e 63 74 69 6f 6e |d item..|function|
|000013a0| 20 73 74 72 69 6e 67 20 | 46 69 6e 64 45 78 74 72 | string |FindExtr|
|000013b0| 61 20 28 73 74 72 69 6e | 67 20 45 78 74 72 61 54 |a (strin|g ExtraT|
|000013c0| 65 78 74 2c 20 6f 70 74 | 69 6f 6e 61 6c 20 62 6f |ext, opt|ional bo|
|000013d0| 6f 6c 20 62 45 78 61 63 | 74 20 29 0d 0a 7b 0d 0a |ol bExac|t )..{..|
|000013e0| 09 6c 6f 63 61 6c 20 69 | 6e 74 20 69 3b 0d 0a 09 |.local i|nt i;...|
|000013f0| 66 6f 72 20 28 69 3d 30 | 3b 69 3c 49 74 65 6d 43 |for (i=0|;i<ItemC|
|00001400| 6f 75 6e 74 3b 69 2b 2b | 29 0d 0a 09 7b 0d 0a 09 |ount;i++|)...{...|
|00001410| 09 69 66 20 28 62 45 78 | 61 63 74 29 0d 0a 09 09 |.if (bEx|act)....|
|00001420| 7b 0d 0a 09 09 09 69 66 | 20 28 45 78 74 72 61 54 |{.....if| (ExtraT|
|00001430| 65 78 74 20 3d 3d 20 45 | 6c 65 6d 65 6e 74 73 5b |ext == E|lements[|
|00001440| 69 5d 2e 45 78 74 72 61 | 53 74 72 44 61 74 61 29 |i].Extra|StrData)|
|00001450| 0d 0a 09 09 09 7b 0d 0a | 09 09 09 09 53 65 74 49 |.....{..|....SetI|
|00001460| 6e 64 65 78 28 69 29 3b | 0d 0a 09 09 09 09 72 65 |ndex(i);|......re|
|00001470| 74 75 72 6e 20 45 6c 65 | 6d 65 6e 74 73 5b 69 5d |turn Ele|ments[i]|
|00001480| 2e 49 74 65 6d 3b 0d 0a | 09 09 09 7d 0d 0a 09 09 |.Item;..|...}....|
|00001490| 7d 0d 0a 09 09 65 6c 73 | 65 0d 0a 09 09 7b 0d 0a |}....els|e....{..|
|000014a0| 09 09 09 69 66 20 28 45 | 78 74 72 61 54 65 78 74 |...if (E|xtraText|
|000014b0| 20 7e 3d 20 20 45 6c 65 | 6d 65 6e 74 73 5b 69 5d | ~= Ele|ments[i]|
|000014c0| 2e 45 78 74 72 61 53 74 | 72 44 61 74 61 29 0d 0a |.ExtraSt|rData)..|
|000014d0| 09 09 09 7b 0d 0a 09 09 | 09 09 53 65 74 49 6e 64 |...{....|..SetInd|
|000014e0| 65 78 28 69 29 3b 0d 0a | 09 09 09 09 72 65 74 75 |ex(i);..|....retu|
|000014f0| 72 6e 20 45 6c 65 6d 65 | 6e 74 73 5b 69 5d 2e 49 |rn Eleme|nts[i].I|
|00001500| 74 65 6d 3b 0d 0a 09 09 | 09 7d 0d 0a 09 09 7d 0d |tem;....|.}....}.|
|00001510| 0a 09 7d 0d 0a 09 72 65 | 74 75 72 6e 20 22 22 3b |..}...re|turn "";|
|00001520| 0d 0a 7d 0d 0a 0d 0a 00 | |..}.....| |
+--------+-------------------------+-------------------------+--------+--------+